#include	<unistd.h>
#include	"my.h"

int		xdup2(int oldfd, int newfd)
{
  if (dup2(oldfd, newfd) == -1)
    my_put_error("Error : dup2 function failed\n");
  return (newfd);
}
